// Font Size: default 14px;
$menu_font_size: 13px;
$body_font_size: 13px;
$body_bg: #fcfcfc;

// Extra small screen / phone
$screen-xs: 480px !default;
$screen-xs-min: $screen-xs !default;
$screen-phone: $screen-xs-min !default;

// Small screen / tablet
$screen-sm: 768px !default;
$screen-sm-min: $screen-sm !default;
$screen-tablet: $screen-sm-min !default;

// Medium screen / desktop
$screen-md: 992px !default;
$screen-md-min: $screen-md !default;
$screen-desktop: $screen-md-min !default;

// Large screen / wide desktop
$screen-lg: 1200px !default;
$screen-lg-min: $screen-lg !default;
$screen-lg-desktop: $screen-lg-min !default;

// So media queries don't overlap when required, provide a maximum
$screen-xs-max: ($screen-sm-min - 1) !default;
$screen-sm-max: ($screen-md-min - 1) !default;
$screen-md-max: ($screen-lg-min - 1) !default;

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans'), local('OpenSans'), url(../fonts/OpenSans.woff) format('woff');
}

$main_color: #EB5B5B;

html, body {
  margin: 0;
  padding: 0;
  background: $body_bg;
}

html, body {
  font-size: $body_font_size;
  font-family: 'Open Sans', 'sans-serif';
  font-weight: 300;
  line-height: 20px;
  color: #555;
  /*  background-image: linear-gradient(bottom,#d0d6da 0,#fff 100%);
    background-image: -o-linear-gradient(bottom,#d0d6da 0,#fff 100%);
    background-image: -moz-linear-gradient(bottom,#d0d6da 0,#fff 100%);
    background-image: -webkit-linear-gradient(bottom,#d0d6da 0,#fff 100%);
    background-image: -ms-linear-gradient(bottom,#d0d6da 0,#fff 100%);
    background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0,#d0d6da),color-stop(1,#fff));*/
}

::selection {
  background: #dc5537;
  color: #fff;
  text-shadow: none;
}

.btn, .form-control {
  border-radius: 0;
}

a {
  color: #157796;
}

#header, .white_box, .breadcrumb {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 4px 10px rgba(0, 0, 0, 0.06);
}

.breadcrumb {
  background: #fff;
}

.white_box {
  background: #fff;
  margin-bottom: 20px;
  .box_title {
    margin-top: 0;
    padding: 10px;
    font-size: 17px;
    line-height: 24px;
    font-weight: 300;
    text-transform: none;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    color: #c94053;
  }
  .box-body {
    padding: 10px;
  }
}

.categories_list {
  position: relative;
  > ul > li {
    & > a {
      padding: 3px;
      border-bottom: 1px solid #ECE3E3;
    }
    & > ul {
      margin-left: 0 !important;
    }
  }
  li a {
    display: block;
    text-decoration: none;
    color: #555;
    &.selected {
      &:hover {
        background: #b24848;
      }
      background: #EB5B5B;
      color: #fff;
    }
    .pull-right {
      position: absolute;
      right: 15px;
    }
  }
  li.has-child {
    cursor: pointer;
    & > a {

    }
  }
  & ul > li ul {
    background: #F5F5F5;
    margin-left: 5px;

    li {
      &:first-child {
        padding-top: 5px;
      }
      &:last-child {
        padding-bottom: 5px;
      }
      a {
        padding: 0 10px;
        &:hover {
          background: #E6E6E6;
        }
      }
    }
  }
}

.resolution_group .group_name:after {
  font-family: 'FontAwesome';
  content: "\f078";
  float: right;
  color: #888888;
}

.resolution_group .group_name.collapsed:after {
  content: "\f077";
  color: #ccc;
}

.categories_list li.has-child:before {
  content: "\f077";
  color: #ccc;
  font-family: 'FontAwesome';
  position: absolute;
  right: 14px;
  font-size: 10px;
}

.categories_list li.has-child.active:before {
  content: "\f078";
  color: #888888;
}

#resolution_list {
  .global_apply {
    position: relative;
    padding: 10px;
    .desk {
      position: absolute;
      top: 8px;
      left: 0;
      font-size: 18px;
      padding: 5px;
    }
    .global_msg {
      padding-left: 25px;
      .yr_msg {
        margin-right: 5px;
        font-size: 11px;
      }
      .submit {
        padding: 0 7px;
        font-size: 12px;
        vertical-align: top;
      }
    }
  }
  .resolution_group {
    &.panel {
      margin: 0;
      -webkit-box-shadow: none;
      box-shadow: none;
      background: transparent;
      border: 0;
      border-radius: 0;
    }

    .group_name {
      padding: 5px;
      border-bottom: 1px solid #ECE3E3;
      cursor: pointer;
    }
    .group_data {
      margin: 0;
      background: #5E5E5E;
      color: #fff;
      .gldata {
        padding: 10px;
        li {
          &.active, a:hover {
            background: $main_color;
          }
          a {
            display: block;
            padding: 2px;
            text-decoration: none;
            color: #FFF;
          }
        }
        .fa {
          font-size: 80%;
        }
      }
    }
  }
}

.fa {
  &.fa-big {
    font-size: 15px;
  }
}

//badges

.shape {
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 70px 40px 0;
  float: right;
  height: 0px;
  width: 0px;
  -ms-transform: rotate(360deg);
  -o-transform: rotate(360deg);
  -webkit-transform: rotate(360deg);
  transform: rotate(360deg);
  border-color: rgba(255, 255, 255, 0) #d9534f rgba(255, 255, 255, 0) rgba(255, 255, 255, 0);
  .shape-text {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    position: relative;
    right: -40px;
    top: 2px;
    white-space: nowrap;
    -ms-transform: rotate(30deg);
    -o-transform: rotate(360deg);
    -webkit-transform: rotate(30deg);
    transform: rotate(30deg);
  }
  &.shape-danger {
    border-color: transparent #d9534f transparent transparent;
  }
  &.shape-success {
    border-color: transparent #5cb85c transparent transparent;
  }
  &.shape-default {
    border-color: transparent #999999 transparent transparent;
  }
  &.shape-info {
    border-color: transparent #5bc0de transparent transparent;
  }
  &.shape-warning {
    border-color: transparent #f0ad4e transparent transparent;
  }
  &.shape-primary {
    border-color: transparent #428bca transparent transparent;
  }
}

#header {
  font-size: $menu_font_size;
  background-color: #fcfcfc;
  .navbar {
    border-radius: 0;
    border: 0;
    margin-bottom: 0;
    background: #fff;
    box-shadow: none;
    .dropdown-menu {
      .fa {
        color: #0F6E5F;
      }
    }
    .navbar-brand {
      @media screen and (min-width: $screen-md-min) {
        margin-right: 150px;
      }
      span {
        font-family: sans-serif;
        font-weight: bold;
        border-bottom: 1px solid;
        &.red {
          color: #c94053;
        }
        &.blue {
          color: #40c9b2;
          font-size: 20px;
        }
      }
    }
    .wSearch {
      .form-control {
        border-color: #E6E6E6;
        min-width: 270px;
      }
      .btn {
        background: #F1F1F1;
        border-color: #EEE2E2;
      }
    }
    .dropdown {
      &.open {
        & > a {
          background: #40c9b2;
          color: #fff;
          &:hover, &:focus {
            background: #40c9b2;
            color: #fff;
          }
        }
      }
      &.active > a {
        background: #40c9b2;
        color: #fff;
      }
      @media screen and (min-width: $screen-md-min) {
        ul.dropdown-menu {
          margin-top: 10px;
          &:before {
            content: "";
            border-bottom: 5px solid #fff;
            border-right: 5px solid transparent;
            border-left: 5px solid transparent;
            position: absolute;
            top: -5px;
            right: 8px;
            z-index: 10;
          }
          &:after {
            content: "";
            border-bottom: 6px solid #ccc;
            border-right: 6px solid transparent;
            border-left: 6px solid transparent;
            position: absolute;
            top: -6px;
            right: 7px;
            z-index: 9;
          }
        }
      }
    }
  }
}

@media screen and (min-width: $screen-md-min) {
  .col-sm-25 {
    width: 20.833333335%;
  }
  .col-sm-70 {
    width: 58.33333333%;
  }
}

.container {
  @media screen and (max-width: $screen-sm) {
    width: auto;
  }
  @media screen and (min-width: 1600px) {
    width: 1500px;
  }
}

.form-horizontal, .label_normal {
  label {
    font-weight: normal;
  }
}

.alert, .well {
  background-image: none;
  border-radius: 0;
}

.hr-sm {
  margin: 5px 0;
}

@media screen and (min-width: $screen-md-min) {
  .pull-right-desk {
    float: right;
  }
  .text-right-desk {
    text-align: right;
  }
}

#recaptcha_widget {
  min-height: 151px;
  .input-group-addon {
    padding: 0;
    .btn {
      padding-top: 0;
      padding-bottom: 0;
    }
  }
}

.page-header {
  padding: 10px;
  background: #FFFFFF;
  margin: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 4px 10px rgba(0, 0, 0, 0.06);
  margin-bottom: 10px;
  border-bottom: 1px solid #D3D3D3;
  &.next {
    margin-top: 15px;
  }
  h4 {
    margin: 0;
    padding: 0;
    font-size: 14px;
    .fa-rss-square {
      color: #D56C27;
    }
  }
}

.account_sidebar {
  .panel-body {
    padding: 0;
    .list-group {
      box-shadow: none;
      -webkit-box-shadow: none;
      margin: 0;
      .list-group-item {
        margin-bottom: 0;
        border: 0;
        border-bottom: 1px solid #ddd;
        span.fa {
          color: #ccc;
        }
        &:first-child {
          border-radius: 0;
        }
        &:last-child {
          border-radius: 0;
          border-bottom: 0;
        }
      }
    }
  }
}

.help-block {
  &.help-block-sm {
    margin-bottom: 0;
  }
}

#contents {
  margin-top: 30px;
}

.block_404 {
  text-align: center;
  @media screen and (min-width: $screen-md-min) {
    margin-top: 60px;
  }
  h1 {
    font-size: 170px;
  }
}

#loginbox {
  margin-top: 50px;
  .panel-body {
    padding-top: 30px;
    #loginform {
    }
  }
}

#footer {
  padding: 20px 0;
  background: #f7f7f7;
  border-top: 1px solid #D3D3D3;
  margin-top: 30px;
  @media screen and (min-width: $screen-md-min) {
  }
  .list-menu {
    li {
      border-right: 1px solid #D8D8D8;
      padding-right: 10px;
      margin-right: 5px;
      &:last-child {
        border: 0;
        padding-right: 0;
        margin-right: 0;
      }
    }
  }
}

.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus {
  background-color: #333;
  border-color: #111111;
}

.pagination > li > a, .pagination > li > span {
  color: #333;
}

.wallpaper_filter {
  padding: 10px 0;
  margin-bottom: 25px;

  .search_form {

  }
}

.progress.tag {
  margin: 0;
}

.progress-sm {
  height: 10px;
}

.table.tr-sm {
  tbody tr {
    td {
      padding: 5px 10px;
    }
  }
}

// Home Page
$each_item_padding: 5px;
.grid_container {
  margin-right: -$each_item_padding*2;
  .item {
    &:hover {
      .thumbnail {
        .pr {
          .name {
            top: 0px;
            visibility: visible;
          }
          .edit{
            left: 0;
            visibility: visible;
          }
          .delete{
            right: 0;
            visibility: visible;
          }
        }
      }
    }
    display: inline-block;
    position: relative;
    float: left;
    overflow: hidden;
    .thumbnail {
      margin: 0 $each_item_padding ($each_item_padding*2) $each_item_padding;
      padding: 6px;
      &.thumbnail-lg {
        padding: 10px;
      }
      &:hover {
        .wall_stats .fa {
          color: #3E959C;
        }
      }
      .wall_stats {
        @media screen and (min-width: $screen-md-min) {
          font-size: 12px;
        }
        padding: 7px 0;
        .fa {
          color: #ccc;
          &.fa-star, &.fa-star-half-empty {
            color: #c94053;
          }
        }
        .stats {
          @media screen and (min-width: $screen-md-min) {
            border-left: 1px solid #E4E4E4;
            padding-left: 10px;
          }
        }
        .size {

        }
      }
      .pr {
        position: relative;
        .transition{
          position: absolute;
          -webkit-transition: all 0.3s ease;
          -moz-transition: all 0.3s ease;
          -o-transition: all 0.3s ease;
          transition: all 0.3s ease;
          background: rgba(19, 19, 19, 0.67);
          color: #ddd;
          visibility: hidden;
          a{
            color: #fff;
          }
        }
        .name {
          .block {
            padding: 3px;
          }
          display: block;
          width: 100%;
          top: -30px;
          z-index: 9;
        }
        .edit{
          display: inline-block;
          left: -20px;
          bottom: 0px;
        }
        .delete{
          display: inline-block;
          right: -20px;
          bottom: 0px;
          background: rgb(206, 76, 76);
        }
        .not_approved,.disabled{
          position: absolute;
          top: 0;
          padding: 2px;
          color: #fff;
          font-size: 11px;
        }
        .not_approved{
          right: 0;
          background: rgba(38, 194, 224, 0.65);
        }
        .disabled{
          left: 0;
          background: rgba(224, 38, 38, 0.65);
        }

        .delete,.edit{
          a{
            padding: 5px;
          }
        }
        img {
          width: 100%;
        }
      }
    }
  }
}

.wallpaper_title {
  h2 {
    margin-top: 0;
    font-size: 18px;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 10px;
    line-height: 24px;
  }
}

.wallpaper_image {
  .thumbnail {
    margin-bottom: 0;
    padding: 8px;
  }
  position: relative;
}

.details_title {
  font-weight: bold;
  font-size: 11px;
}

.wblock {
  margin-bottom: 5px;
}

.next_prev {
  margin-top: 15px;
  position: relative;
  a {
    padding: 5px 10px;
  }
  .loading {
    position: absolute;
    left: 48%;
    font-size: 20px;
  }
}

.wallpaper_colors {
  span.color_block {
    width: 15px;
    height: 15px;
    display: inline-block;
    @media screen and (max-width: $screen-xs-max) {
      width: 10px;
      height: 10px;
    }
  }
}

.wallpaper_rating_single {
  font-size: 18px;
  margin-top: 10px;
  .fa-star-half-empty, .fa-star {
    color: $main_color;
  }
  .vote_details {
    font-size: 11px;
  }
}

.votes {
  display: inline-block;
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: #fff;
  padding: 6px;
  font-size: 15px;
  color: #fff;
  .voteup {
    padding: 1px 8px;
  }
  .votedown {
    padding: 1px 8px;
  }
}

.filtration {
  margin: 20px 5px;
  .latest {
    color: #35B823;
  }
  .views {
    color: #BB551C;
  }
  .downloads {
    color: #258FCA;
  }
  .favourites {
    color: #BE2828;
  }
  .rating {
    color: #98AC2F;
  }
  li.active {
    background: #E2E2E2;
  }
}

.favorites {
  display: inline-block;
  position: absolute;
  bottom: 9px;
  right: 9px;
  background: #fff;
  padding: 4px 10px;
  font-size: 15px;
  color: #ff333e;
  cursor: pointer;
}

.resblocks {
  margin-top: 15px;
  td.res_info {
    background: #FAFAFA;
    color: #858585;
  }
  ul {
    margin-bottom: 0;
    li {
      &.active {
        background: #ddd;
      }
      min-width: 97px;
      .fa {
        color: #aaa;
      }
    }
  }
}

img.img-center {
  margin: 0 auto;
}

.m_t_5 {
  margin-top: 5px;
}

.m_t_10 {
  margin-top: 10px;
}

@media screen and (min-width: $screen-md-min) {
  .row_no_pad_right {
    padding-right: 0;
  }
  .row_no_pad_left {
    padding-left: 0;
  }
}

.social_buttons_details {
  display: inline-block;
  margin-bottom: 0;
  @media screen and (min-width: $screen-md-min) {
    margin-left: 30px;
  }
  @media screen and (max-width: $screen-xs-max) {
    li {
      padding-right: 0;
    }
  }
}

.row {
  &.row-sm {
    margin-left: -5px;
    margin-right: -5px;
    .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
      padding-left: 5px;
      padding-right: 5px;
    }
  }
}

@media screen and (min-width: $screen-sm-min) {
  .text-right-no-xs {
    text-align: right;
  }
  .comment_data {
    margin: 10px;
  }
}

.comment_form form {
  background-color: #F7F7F7;
  border: solid #e9e9e9;
  border-width: 1px 0;
  padding: 7px 10px;
  .thumbnail {
    margin: 0;
  }
  #recaptcha_widget {
    min-height: 0;
    & > .row {
      margin: 0 -5px;
    }
  }
}

.comment_single {
  margin-bottom: 10px;
  .data {
    padding: 5px;
    background: #fff;
    border: 1px solid #EBEBEB;
    .top {
      margin-bottom: 5px;
      border-bottom: 1px solid #F3F3F3;
      color: #A39B9B;
    }
    p {
      margin-bottom: 0;
    }
  }
}

.noty_text {
  font-weight: normal;
  p {
    margin-bottom: 5px;
    font-weight: normal;
  }
}

.report_comment {
  padding: 10px;
  cursor: pointer;
  &:hover {
    color: #ECAB58;
  }
}

.modal-backdrop {
  background: #fff;
  &.in {
    opacity: 0;
  }
}

.search_filters {
  padding: 5px;
}

.form-control.white {
  background: #f6f6f6;
}

.input-group .form-control.search_box {
  padding-right: 105px;
}

.text-center-desk {
  @media screen and (min-width: $screen-md-min) {
    text-align: center;
  }
}

.color_picker {
  .color_pallet {
    position: absolute;
    top: 3px;
    z-index: 2;
    right: 50px;
    height: 25px;
    padding: 0;
    margin: 0;
    border: 0;
    background: url("../img/color-spectrum.png") no-repeat 0 0 transparent;
    width: 25px;
    cursor: pointer;
  }
  .html5_color {
    position: absolute;
    visibility: hidden;
  }
  .show_hash {
    @media (max-width: $screen-xs-min) {
      font-size: 10px;
    }
    position: absolute;
    top: 5px;
    right: 83px;
    z-index: 9;
    .fa.fa-times {
      padding: 4px;
      cursor: pointer;
    }
  }
}

.display_inline {
  display: inline-block;
}

.cover_upload ul {
  padding-left: 10px;
}

.jcrop-holder img,
img.jcrop-preview {
  max-width: none;
}

.pr10 {
  padding-right: 10px;
}

.upload_by_label {
  margin-bottom: 3px;
}

.help-block{
  color: #BDBDBD;
}
.form-group .bootstrap-tagsinput{
  display: block;
  margin-bottom:0;
}

.redactor_editor, .redactor_editor:focus{
  min-height: 140px;
}